package com.homesoft.runtime.metadata.modle;

import com.thoughtworks.xstream.annotations.XStreamOmitField;


public class ValueChangeNotifier implements IOwnerAware, IListAware {
	@XStreamOmitField 
	private  IOwnerAware _owner;
	@XStreamOmitField 
	private String _memberName;
	
	protected  boolean NotifyEnabled(){
		 return false;
	}
	 protected void OnPropertyChanged(String propertyName, Object oldValue, Object newValue)
     {
     }
	 protected boolean OnPropertyChanging(String string, String oldValue, String key) {
			return false;
			
		}
	@Override
	public void OnAdded(INotifierList list) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void OnRemoved(INotifierList list) {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	public IOwnerAware getOwner() {
		return this._owner ;
	}
	@Override
	public void setOwner(IOwnerAware oWner) {
		this._owner = oWner;
		
	}
	@Override
	public String getMemberName() {
		return this._memberName;
	}
	@Override
	public void setMemberName(String memberName) {
		this._memberName = memberName;
	}
	@Override
	public String getObjectPath() {
		// TODO Auto-generated method stub
		return null;
	}
}
